package com.mss.media.enumeration;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 提交类型
 */
@Getter
@AllArgsConstructor
public enum Submit implements IEnum<Integer> {

    /**
     * 暂存
     */
    STAGING(0,"暂存"),
    /**
     * 提交
     */
    SUBMIT(1,"提交");

    private final Integer code;
    private final String desc;

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String toString() {
        return this.desc;
    }
}
